using System;
using System.Collections.Generic;
using System.Text;
using MCMLXVII.BackEnd.Services.OrganizationChart.Interfaces;

namespace MCMLXVII.Tools.OrganizationChart.SmartEditors
{
    public class MemberUpdatedEventsArgs: EventArgs 
    {
        private int _MemberID;
        private NodeEditorHelper _NodeInfo;
        private int _FatherNodeID;
        private iOrganizationTreeMemberClass _MemberInfo;
        private bool _IsNode;

        public bool IsNode
        {
            get { return _IsNode; }
        }
        public int MemberID
        {
            get { return _MemberID; }
        }
        public NodeEditorHelper NodeInfo
        {
            get { return _NodeInfo; }
        }
        public int FatherNodeID
        {
            get { return _FatherNodeID; }
        }
        public iOrganizationTreeMemberClass MemberInfo
        {
            get { return _MemberInfo;}
        }
        public MemberUpdatedEventsArgs(int MemberID): base()
        {
            _IsNode = false;
            _MemberID = MemberID;
        }

        public MemberUpdatedEventsArgs(int MemberID, int FatherNodeID, iOrganizationTreeMemberClass MemberInfo): base()
        {
            _IsNode = false;
            _MemberID = MemberID;
            _FatherNodeID  = FatherNodeID;
            _MemberInfo = MemberInfo;
        }
        
        public MemberUpdatedEventsArgs(int FatherNodeID, NodeEditorHelper  Node): base()
        {
            _IsNode = true;            
            _FatherNodeID = FatherNodeID;
            _NodeInfo = Node;
        }

    }
}
